package com.ddx.dao;

import com.ddx.pojo.Advert;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AdvertMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Advert record);

    int insertSelective(Advert record);

    Advert selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Advert record);

    int updateByPrimaryKey(Advert record);

    Advert selectAdvertByVideoId(@Param("videoId") int videoId);

    List<Advert> selectByUserId(@Param("userId") int userId);
}